home *** CD-ROM | disk | FTP | other *** search
/ Hyper Stacks 1994 May / Hyper Stacks (Pacific HiTech)(1994)[Mac].iso / Utilities / Import⁄Export Tools / Import_Export Tools / background_17972.xml next >
Encoding:
Extensible Markup Language  |  1994-04-05  |  3.4 KB  |  13 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>17972</id>
  5.     <filler1>0</filler1>
  6.     <cantDelete> <true /> </cantDelete>
  7.     <showPict> <true /> </showPict>
  8.     <dontSearch> <false /> </dontSearch>
  9.     <link rel="stylesheet" type="text/css" href="stylesheet_6249.css" />
  10.     <name>Export-Import</name>
  11.     <script>on enterkey
  12. -- capture enter key
  13. end enterkey
  14.  
  15. on deleteCurrentCard
  16. lock screen
  17. doMenu "Delete Card"
  18. unlock screen
  19. end deleteCurrentCard
  20.  
  21. on MyPop cardid
  22. repeat until the name of this card is cardid
  23. pop card
  24. end repeat
  25. end MyPop
  26.  
  27. function getforeignbkgnds
  28. put empty into fbackPop
  29. put number of backgrounds into num
  30. repeat with rr = 1 to num
  31. if rr is 1 then
  32. get short name of background rr
  33. -- if it is empty then get the long name of background rr
  34. put it&"[checkmark]" after fbackpop
  35. else
  36. get short name of background rr
  37. put it&"[]" after fbackpop
  38. end if
  39. end repeat
  40. return fbackpop
  41. end getforeignbkgnds
  42.  
  43. -- function getbackflds fbackgnd,ignores
  44. -- set cursor to busy
  45. -- if fbackgnd contains "bkgnd id" then
  46. -- do "go to first card of "& fbackgnd
  47. -- else
  48. -- do "go to first card of bkgnd "&quote&fbackgnd&quote
  49. -- end if
  50. -- put number of background fields into numbgfields
  51. -- put number of items in ignores into numigs
  52. -- put empty into bgfldname
  53. -- repeat with rr = 1 to numbgfields
  54. -- put short name of bg fld rr into tempfld
  55. -- repeat with ss = 1 to numigs
  56. -- put item ss of ignores into tempignore
  57. -- if tempfld contains tempignore then
  58. -- exit repeat
  59. -- else
  60. -- if ss = numigs then
  61. -- put short name of bg fld rr & "," after bgfldname
  62. -- end if
  63. -- end if
  64. -- end repeat
  65. -- end repeat
  66. -- sort items of bgfldname
  67. -- put number of items of bgfldname into temp
  68. -- put replace(",","[]",bgfldname) into bgfldname
  69. -- put temp&"None[checkmark]" before bgfldname
  70. -- return bgfldname
  71. -- end getbackflds
  72.  
  73.  
  74. function getbackflds fbackgnd,ignores
  75. set cursor to busy
  76. if fbackgnd contains "bkgnd id" then
  77. do "go to first card of "& fbackgnd
  78. else
  79. do "go to first card of bkgnd "&quote&fbackgnd&quote
  80. end if
  81. put number of background fields into numbgfields
  82. put number of items in ignores into numigs
  83. put empty into bgfldname
  84. repeat with rr = 1 to numbgfields
  85. put short name of bg fld rr into tempfld
  86. if numigs = 0 then    -- ***
  87. put short name of bg fld rr & "," after bgfldname    -- ***
  88. else    -- ***
  89. repeat with ss = 1 to numigs
  90. put item ss of ignores into tempignore
  91. if tempfld contains tempignore then
  92. exit repeat
  93. else
  94. if ss = numigs then
  95. put short name of bg fld rr & "," after bgfldname
  96. end if
  97. end if
  98. end repeat
  99. end if    -- ***
  100. end repeat
  101. sort items of bgfldname
  102. put number of items of bgfldname into temp
  103. put replace(",","[]",bgfldname) into bgfldname
  104. put temp&"None[checkmark]" before bgfldname
  105. return bgfldname
  106. end getbackflds
  107.  
  108. on ChooseAllFields Listname,fieldid
  109. put replace("None[checkmark]","",listname) into temp
  110. put replace("[]",",",temp) into temp
  111. repeat with rr = 1 to (number of items of temp)
  112. do "put item rr of temp into line rr of "&fieldid
  113. end repeat
  114. end chooseAllFields
  115.  
  116. function readfile textfile, endchar
  117. put empty into temp
  118. repeat until (chartonum(last char of temp) = chartonum(endchar))
  119. read from file textfile until endchar
  120. if (it is empty) and (temp is empty) then exit repeat
  121. if it ‚↠return then put it after temp
  122. end repeat
  123. return temp
  124. end readfile
  125. </script>
  126. </background>
  127.